-- GENERATED SPELL FOR [Crimson Acolyte] --


function spell0_29007(pUnit, Event) --@Holy Fury,n/a--
pUnit:FullCastSpellOnTarget(34809,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29007', 589, 1)
end

function spell1_29007(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(15498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29007', 2500, 1)
end

function spell2_29007(pUnit, Event) --@Turn Undead,n/a--
pUnit:FullCastSpellOnTarget(19725,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29007', 21500, 1)
end

function Sorts_29007(pUnit, Event)
local choix_sorts_29007 = math.random(0, 2)
if choix_sorts_29007 == 0 then
pUnit:RegisterEvent('spell0_29007', 1, 1)
end
if choix_sorts_29007 == 1 then
pUnit:RegisterEvent('spell1_29007', 1, 1)
end
if choix_sorts_29007 == 2 then
pUnit:RegisterEvent('spell2_29007', 1, 1)
end
end

function mob29007_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29007', math.random(1500, 3000), 1)
end

function mob29007_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29007_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29007_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29007, 1, 'mob29007_Action')
RegisterUnitEvent(29007, 2, 'mob29007_Leave')
RegisterUnitEvent(29007, 3, 'mob29007_Kill')
RegisterUnitEvent(29007, 4, 'mob29007_Die')
